package cn.pomelo.secondskill.service.impl;

import cn.pomelo.secondskill.config.MQConfig;
import cn.pomelo.secondskill.mapper.UsersMapper;
import cn.pomelo.secondskill.model.Users;
import cn.pomelo.secondskill.rabbitMQ.Subscriber;
import cn.pomelo.secondskill.rabbitMQ.domain.MessageEvent;
import cn.pomelo.secondskill.service.UsersService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
@Service
public class UsersServiceImpl implements UsersService{

    @Resource
    private UsersMapper usersMapper;

    @Override
    public int deleteByPrimaryKey(Integer id) {
        return usersMapper.deleteByPrimaryKey(id);
    }

    @Override
    public int insert(Users record) {
        return usersMapper.insert(record);
    }

    @Override
    public int insertSelective(Users record) {
        return usersMapper.insertSelective(record);
    }

    @Override
    public Users selectByPrimaryKey(Integer id) {
        return usersMapper.selectByPrimaryKey(id);
    }

    @Override
    public int updateByPrimaryKeySelective(Users record) {
        return usersMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(Users record) {
        return usersMapper.updateByPrimaryKey(record);
    }

}
